package com.yc.blog.springboot.event.demo2;

import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;
import org.springframework.web.context.support.RequestHandledEvent;

/**
 * 监听RequestHandledEvent事件
 */
@Component
public class Listener5 {

	@EventListener
	public void listenerMyEvent1(RequestHandledEvent event) {
		
		System.out.println("Listener5 收到事件通知：" + event.getShortDescription());
		//do something
	}

}
